import { request } from '@/utils/request'
import qs from 'query-string'

export const addPeriod = (data) =>
  request({
    method: 'POST',
    url: '/period/add',
    data: qs.stringify(data)
  })
export const getPeriod = () =>
  request({
    method: 'GET',
    url: '/period/all'
  })

// export const deleteMemory = (target) =>
//   request({
//     method: 'DELETE',
//     url: `/memory/delete/${target}`
//   })
// export const updateMemory = (data) =>
//   request({
//     method: 'POST',
//     url: '/memory/update',
//     data: qs.stringify(data)
//   })
